const Layout = () => import('@/layout/index.vue')

export default {
  name: 'Blog',
  path: '/blog',
  component: Layout,
  meta: {
    title: '博客管理',
    icon: 'mdi:emoticon-devil',
    order: 1,
  },
  children: [
    {
      name: 'WriteBlog',
      path: 'writeBlog',
      component: () => import('@/views/blog/blog/writeBlog.vue'),
      meta: {
        title: '写文章',
        icon: 'mdi:fountain-pen-tip',
        order: 1,
      },
    },
    {
      name: 'WriteMoment',
      path: 'writemoment',
      component: () => import('@/views/blog/moment/writeMoment.vue'),
      meta: {
        title: '写动态',
        icon: 'mdi:tooltip-edit',
        order: 2,
      },
    },
    {
      name: 'Blog',
      path: 'blog',
      component: () => import('@/views/blog/blog/index.vue'),
      meta: {
        title: '文章管理',
        icon: 'mdi:file-word',
        order: 3,
        keepAlive: true,
      },
    },
    {
      name: 'Moment',
      path: 'moment',
      component: () => import('@/views/blog/moment/index.vue'),
      meta: {
        title: '动态管理',
        icon: 'mdi:message-processing',
        order: 4,
        keepAlive: true,
      },
    },
    {
      name: 'Category',
      path: 'category',
      component: () => import('@/views/blog/category/index.vue'),
      meta: {
        title: '分类管理',
        icon: 'mdi:umbrella-beach',
        order: 5,
        keepAlive: true,
      },
    },
    {
      name: 'Tag',
      path: 'tag',
      component: () => import('@/views/blog/tag/index.vue'),
      meta: {
        title: '标签管理',
        icon: 'mdi:tag',
        order: 6,
        keepAlive: true,
      },
    },
    {
      name: 'EditMoment',
      path: 'moment/edit/:id',
      component: () => import('@/views/blog/moment/writeMoment.vue'),
      meta: {
        title: '编辑动态',
        icon: 'mdi:tooltip-edit',
        order: 7,
      },
      isHidden: true,
    },
    {
      path: 'blog/edit/:id',
      name: 'EditBlog',
      component: () => import('@/views/blog/blog/writeBlog.vue'),
      meta: {
        title: '编辑文章',
        icon: 'mdi:fountain-pen-tip',
        order: 8,
      },
      isHidden: true,
    },
  ],
}
